Optimal. Leaf size=179 \[ \frac {2 b^2 B \sin (c+d x)}{a d \left (a^2-b^2\right ) \sqrt {a+b \cos (c+d x)}}-\frac {2 b B \sqrt {a+b \cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{a d \left (a^2-b^2\right ) \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}+\frac {2 B \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{a d \sqrt {a+b \cos (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.42, antiderivative size = 179, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 8, integrand size = 34, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.235, Rules used = {21, 2802, 3059, 2655, 2653, 12, 2807, 2805} \[ \frac {2 b^2 B \sin (c+d x)}{a d \left (a^2-b^2\right ) \sqrt {a+b \cos (c+d x)}}-\frac {2 b B \sqrt {a+b \cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{a d \left (a^2-b^2\right ) \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}+\frac {2 B \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{a d \sqrt {a+b \cos (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 21
Rule 2653
Rule 2655
Rule 2802
Rule 2805
Rule 2807
Rule 3059
Rubi steps
\begin {align*} \int \frac {(a B+b B \cos (c+d x)) \sec (c+d x)}{(a+b \cos (c+d x))^{5/2}} \, dx &=B \int \frac {\sec (c+d x)}{(a+b \cos (c+d x))^{3/2}} \, dx\\ &=\frac {2 b^2 B \sin (c+d x)}{a \left (a^2-b^2\right ) d \sqrt {a+b \cos (c+d x)}}+\frac {(2 B) \int \frac {\left (\frac {1}{2} \left (a^2-b^2\right )-\frac {1}{2} a b \cos (c+d x)-\frac {1}{2} b^2 \cos ^2(c+d x)\right ) \sec (c+d x)}{\sqrt {a+b \cos (c+d x)}} \, dx}{a \left (a^2-b^2\right )}\\ &=\frac {2 b^2 B \sin (c+d x)}{a \left (a^2-b^2\right ) d \sqrt {a+b \cos (c+d x)}}-\frac {(2 B) \int -\frac {b \left (a^2-b^2\right ) \sec (c+d x)}{2 \sqrt {a+b \cos (c+d x)}} \, dx}{a b \left (a^2-b^2\right )}-\frac {(b B) \int \sqrt {a+b \cos (c+d x)} \, dx}{a \left (a^2-b^2\right )}\\ &=\frac {2 b^2 B \sin (c+d x)}{a \left (a^2-b^2\right ) d \sqrt {a+b \cos (c+d x)}}+\frac {B \int \frac {\sec (c+d x)}{\sqrt {a+b \cos (c+d x)}} \, dx}{a}-\frac {\left (b B \sqrt {a+b \cos (c+d x)}\right ) \int \sqrt {\frac {a}{a+b}+\frac {b \cos (c+d x)}{a+b}} \, dx}{a \left (a^2-b^2\right ) \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}\\ &=-\frac {2 b B \sqrt {a+b \cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{a \left (a^2-b^2\right ) d \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}+\frac {2 b^2 B \sin (c+d x)}{a \left (a^2-b^2\right ) d \sqrt {a+b \cos (c+d x)}}+\frac {\left (B \sqrt {\frac {a+b \cos (c+d x)}{a+b}}\right ) \int \frac {\sec (c+d x)}{\sqrt {\frac {a}{a+b}+\frac {b \cos (c+d x)}{a+b}}} \, dx}{a \sqrt {a+b \cos (c+d x)}}\\ &=-\frac {2 b B \sqrt {a+b \cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{a \left (a^2-b^2\right ) d \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}+\frac {2 B \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{a d \sqrt {a+b \cos (c+d x)}}+\frac {2 b^2 B \sin (c+d x)}{a \left (a^2-b^2\right ) d \sqrt {a+b \cos (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 4.87, size = 403, normalized size = 2.25 \[ \frac {B \left (\frac {4 b^2 \sin (c+d x)}{\left (a^2-b^2\right ) \sqrt {a+b \cos (c+d x)}}-\frac {\frac {2 \left (2 a^2-3 b^2\right ) \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{\sqrt {a+b \cos (c+d x)}}-\frac {4 a b \sqrt {\frac {a+b \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{\sqrt {a+b \cos (c+d x)}}-\frac {2 i \csc (c+d x) \sqrt {-\frac {b (\cos (c+d x)-1)}{a+b}} \sqrt {\frac {b (\cos (c+d x)+1)}{b-a}} \left (b \left (b \Pi \left (\frac {a+b}{a};i \sinh ^{-1}\left (\sqrt {-\frac {1}{a+b}} \sqrt {a+b \cos (c+d x)}\right )|\frac {a+b}{a-b}\right )-2 a F\left (i \sinh ^{-1}\left (\sqrt {-\frac {1}{a+b}} \sqrt {a+b \cos (c+d x)}\right )|\frac {a+b}{a-b}\right )\right )-2 a (a-b) E\left (i \sinh ^{-1}\left (\sqrt {-\frac {1}{a+b}} \sqrt {a+b \cos (c+d x)}\right )|\frac {a+b}{a-b}\right )\right )}{a \sqrt {-\frac {1}{a+b}}}}{(b-a) (a+b)}\right )}{2 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B b \cos \left (d x + c\right ) + B a\right )} \sec \left (d x + c\right )}{{\left (b \cos \left (d x + c\right ) + a\right )}^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 1.81, size = 377, normalized size = 2.11 \[ \frac {2 B \left (\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-\frac {2 b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a -b}+\frac {a +b}{a -b}}\, b \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {-\frac {2 b}{a -b}}\right ) a -b^{2} \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-\frac {2 b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a -b}+\frac {a +b}{a -b}}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {-\frac {2 b}{a -b}}\right )+\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-\frac {2 b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a -b}+\frac {a +b}{a -b}}\, \EllipticPi \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), 2, \sqrt {-\frac {2 b}{a -b}}\right ) a^{2}-\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-\frac {2 b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a -b}+\frac {a +b}{a -b}}\, \EllipticPi \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), 2, \sqrt {-\frac {2 b}{a -b}}\right ) b^{2}+2 b^{2} \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )\right )}{a \left (a -b \right ) \left (a +b \right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b +a +b}\, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B b \cos \left (d x + c\right ) + B a\right )} \sec \left (d x + c\right )}{{\left (b \cos \left (d x + c\right ) + a\right )}^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {B\,a+B\,b\,\cos \left (c+d\,x\right )}{\cos \left (c+d\,x\right )\,{\left (a+b\,\cos \left (c+d\,x\right )\right )}^{5/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________